package cn.ibizlab.odoo.core.odoo_stock.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_stock.domain.Stock_picking;
import cn.ibizlab.odoo.core.odoo_stock.filter.Stock_pickingSearchContext;

/**
 * 实体[Stock_picking] 服务对象接口
 */

public interface IStock_pickingService{
     Stock_picking get(Integer id) ;
     Stock_picking get(Stock_picking stock_picking) ;
     boolean remove(Integer id) ;
     void updateBatch(List<Stock_picking> stock_pickings, int batchSize) ;
     boolean update(Stock_picking stock_picking) ;
     void createBatch(List<Stock_picking> stock_pickings, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Stock_picking stock_picking) ;

    /**
     * 查询集合 默认查询
     */
    Page<Stock_picking> searchDefault(Stock_pickingSearchContext context) ;

    /**
     * 根据公司查询
     */
     Page<Stock_picking> selectByOdoo_company(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Stock_picking> selectByOdoo_owner(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Stock_picking> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_picking> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Stock_picking> selectByOdoo_write(Integer id) ;

    /**
     * 根据销售订单查询
     */
     Page<Stock_picking> selectByOdoo_sale(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_picking> selectByOdoo_location_dest(Integer id) ;

    /**
     * 根据库存位置查询
     */
     Page<Stock_picking> selectByOdoo_location(Integer id) ;

    /**
     * 根据拣货类型查询
     */
     Page<Stock_picking> selectByOdoo_picking_type(Integer id) ;

    /**
     * 根据调拨查询
     */
     Page<Stock_picking> selectByOdoo_backorder(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Stock_picking convert2Domain(cn.ibizlab.odoo.core.client.model.Istock_picking model ,Stock_picking domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Istock_picking convert2Model(Stock_picking domain , cn.ibizlab.odoo.core.client.model.Istock_picking model);

}
